import instance from '../request'

export const query = (params) => {
    return instance({
        url: '/msg/query',
        method: 'GET',
        params
    })
}


export const create = (data) => {
    return instance({
        url: '/msg/create',
        method: 'post',
        data
    })
}

export const del = (data) => {
    return instance({
        url: '/msg/delete',
        method: 'DELETE',
        data
    })
}

export const createAnswer = (data) => {
    return instance({
        url: '/msg/answer',
        method: 'POST',
        data
    })
}
